<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: qwt_plot_shapeitem.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('qwt__plot__shapeitem_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_plot_shapeitem.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/******************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;qwt_plot_shapeitem.h&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;qwt_scale_map.h&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;qwt_text.h&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_graphic.h&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;qwt_painter.h&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;qwt_weeding_curve_fitter.h&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;qwt_clipper.h&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;qwt_math.h&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;qpainter.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;qpainterpath.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">static</span> QPainterPath qwtTransformPath( <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; xMap,</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; yMap, <span class="keyword">const</span> QPainterPath&amp; path, <span class="keywordtype">bool</span> doAlign )</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    QPainterPath shape;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    shape.setFillRule( path.fillRule() );</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; path.elementCount(); i++ )</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    {</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">const</span> QPainterPath::Element element = path.elementAt( i );</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;        <span class="keywordtype">double</span> x = xMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element.x );</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;        <span class="keywordtype">double</span> y = yMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element.y );</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        <span class="keywordflow">switch</span>( element.type )</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;            <span class="keywordflow">case</span> QPainterPath::MoveToElement:</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            {</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                <span class="keywordflow">if</span> ( doAlign )</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;                {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                    x = qRound( x );</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                    y = qRound( y );</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                }</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;                shape.moveTo( x, y );</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;            <span class="keywordflow">case</span> QPainterPath::LineToElement:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                <span class="keywordflow">if</span> ( doAlign )</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;                {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                    x = qRound( x );</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;                    y = qRound( y );</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                shape.lineTo( x, y );</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;            }</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            <span class="keywordflow">case</span> QPainterPath::CurveToElement:</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;            {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;                <span class="keyword">const</span> QPainterPath::Element element1 = path.elementAt( ++i );</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> x1 = xMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element1.x );</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> y1 = yMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element1.y );</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;                <span class="keyword">const</span> QPainterPath::Element element2 = path.elementAt( ++i );</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> x2 = xMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element2.x );</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;                <span class="keyword">const</span> <span class="keywordtype">double</span> y2 = yMap.<a class="code" href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">transform</a>( element2.y );</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160; </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;                shape.cubicTo( x, y, x1, y1, x2, y2 );</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            }</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            <span class="keywordflow">case</span> QPainterPath::CurveToDataElement:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keywordflow">return</span> shape;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">class </span>QwtPlotShapeItem::PrivateData</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;{</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    PrivateData()</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        : <a class="code" href="class_qwt_plot_shape_item.html#a4fa2640aabb1d3992bb6a102172d4f2c">legendMode</a>( <a class="code" href="class_qwt_plot_shape_item.html">QwtPlotShapeItem</a>::<a class="code" href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cda5798347f022bcd9f66c0bb2c8a9534c3">LegendColor</a> )</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        , <a class="code" href="class_qwt_plot_shape_item.html#abe7488a7707971decaefffc50f0f854a">renderTolerance</a>( 0.0 )</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    {</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#ad59bff5c245a3b2f790058bfe6e8d676">QwtPlotShapeItem::PaintAttributes</a> paintAttributes;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cd">QwtPlotShapeItem::LegendMode</a> <a class="code" href="class_qwt_plot_shape_item.html#a4fa2640aabb1d3992bb6a102172d4f2c">legendMode</a>;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_shape_item.html#abe7488a7707971decaefffc50f0f854a">renderTolerance</a>;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    QRectF <a class="code" href="class_qwt_plot_shape_item.html#a02b583259bcc52b812fe86f08fbe7a37">boundingRect</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    QPen <a class="code" href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">pen</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    QBrush <a class="code" href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">brush</a>;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    QPainterPath <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;};</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a61767eb8966adf67ba8044afc38f5fb5">  112</a></span>&#160;<a class="code" href="class_qwt_plot_shape_item.html#a61767eb8966adf67ba8044afc38f5fb5">QwtPlotShapeItem::QwtPlotShapeItem</a>( <span class="keyword">const</span> QString&amp; title )</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    : <a class="code" href="class_qwt_plot_item.html">QwtPlotItem</a>( <a class="code" href="class_qwt_text.html">QwtText</a>( title ) )</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    init();</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;}</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a33fb91a92c34c58c48d3de1ee278bbc7">  127</a></span>&#160;<a class="code" href="class_qwt_plot_shape_item.html#a61767eb8966adf67ba8044afc38f5fb5">QwtPlotShapeItem::QwtPlotShapeItem</a>( <span class="keyword">const</span> <a class="code" href="class_qwt_text.html">QwtText</a>&amp; title )</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    : <a class="code" href="class_qwt_plot_item.html">QwtPlotItem</a>( title )</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;{</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    init();</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;}</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#accacacbcdbf558ad3dfcba462bf2b0c3">  134</a></span>&#160;<a class="code" href="class_qwt_plot_shape_item.html#accacacbcdbf558ad3dfcba462bf2b0c3">QwtPlotShapeItem::~QwtPlotShapeItem</a>()</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;{</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keyword">delete</span> m_data;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160; </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;<span class="keywordtype">void</span> QwtPlotShapeItem::init()</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;{</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    m_data = <span class="keyword">new</span> PrivateData();</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    m_data-&gt;boundingRect = <a class="code" href="class_qwt_plot_item.html#aebc6a6627f293f62e1d07006b11912cc">QwtPlotItem::boundingRect</a>();</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a>( <a class="code" href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48">QwtPlotItem::AutoScale</a>, <span class="keyword">true</span> );</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">setItemAttribute</a>( <a class="code" href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176">QwtPlotItem::Legend</a>, <span class="keyword">false</span> );</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <a class="code" href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">setZ</a>( 8.0 );</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;}</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a4d08696bbf92892cd007fd10a746ec58">  151</a></span>&#160;<span class="keywordtype">int</span> <a class="code" href="class_qwt_plot_shape_item.html#a4d08696bbf92892cd007fd10a746ec58">QwtPlotShapeItem::rtti</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qwt_plot_item.html#ab149ac85e233ce9cedf2f2f2af871bf3af18fa4c34b44eaf43e13608c6bd7c7b7">QwtPlotItem::Rtti_PlotShape</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;}</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#acd66d009cd24cdfb418a5cc9486b5001">  163</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#acd66d009cd24cdfb418a5cc9486b5001">QwtPlotShapeItem::setPaintAttribute</a>( <a class="code" href="class_qwt_plot_shape_item.html#aaa78031ce7ab1b8e713bc05da05a4631">PaintAttribute</a> attribute, <span class="keywordtype">bool</span> on )</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;{</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="keywordflow">if</span> ( on )</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        m_data-&gt;paintAttributes |= attribute;</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        m_data-&gt;paintAttributes &amp;= ~attribute;</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;}</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a0291a8506ac69ce236545c53c4cc4624">  175</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="class_qwt_plot_shape_item.html#a0291a8506ac69ce236545c53c4cc4624">QwtPlotShapeItem::testPaintAttribute</a>( <a class="code" href="class_qwt_plot_shape_item.html#aaa78031ce7ab1b8e713bc05da05a4631">PaintAttribute</a> attribute )<span class="keyword"> const</span></div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    <span class="keywordflow">return</span> ( m_data-&gt;paintAttributes &amp; attribute );</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;}</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a2daf96fc886bb84e4a55913fc0c39906">  186</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a2daf96fc886bb84e4a55913fc0c39906">QwtPlotShapeItem::setLegendMode</a>( <a class="code" href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cd">LegendMode</a> mode )</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;{</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordflow">if</span> ( mode != m_data-&gt;legendMode )</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        m_data-&gt;legendMode = mode;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <a class="code" href="class_qwt_plot_item.html#a3967414c7542e267d0c2793f02be7241">legendChanged</a>();</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    }</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a4fa2640aabb1d3992bb6a102172d4f2c">  199</a></span>&#160;<a class="code" href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cd">QwtPlotShapeItem::LegendMode</a> <a class="code" href="class_qwt_plot_shape_item.html#a4fa2640aabb1d3992bb6a102172d4f2c">QwtPlotShapeItem::legendMode</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;legendMode;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;}</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a02b583259bcc52b812fe86f08fbe7a37">  205</a></span>&#160;QRectF <a class="code" href="class_qwt_plot_shape_item.html#a02b583259bcc52b812fe86f08fbe7a37">QwtPlotShapeItem::boundingRect</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;boundingRect;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;}</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a0a448e4354f67a3957b8123214cd75bb">  216</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a0a448e4354f67a3957b8123214cd75bb">QwtPlotShapeItem::setRect</a>( <span class="keyword">const</span> QRectF&amp; rect )</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;{</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    QPainterPath path;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    path.addRect( rect );</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160; </div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#a0a8f3ed22324b23d04588cc749b74674">setShape</a>( path );</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;}</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160; </div>
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a9810bd70cfdff88d14f88d9edf20c85b">  230</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a9810bd70cfdff88d14f88d9edf20c85b">QwtPlotShapeItem::setPolygon</a>( <span class="keyword">const</span> QPolygonF&amp; polygon )</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;{</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    QPainterPath <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>.addPolygon( polygon );</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#a0a8f3ed22324b23d04588cc749b74674">setShape</a>( <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a> );</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;}</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160; </div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a0a8f3ed22324b23d04588cc749b74674">  244</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a0a8f3ed22324b23d04588cc749b74674">QwtPlotShapeItem::setShape</a>( <span class="keyword">const</span> QPainterPath&amp; shape )</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;{</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a> != m_data-&gt;shape )</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;        m_data-&gt;shape = <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>.isEmpty() )</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;        {</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            m_data-&gt;boundingRect = <a class="code" href="class_qwt_plot_item.html#aebc6a6627f293f62e1d07006b11912cc">QwtPlotItem::boundingRect</a>();</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            m_data-&gt;boundingRect = <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">shape</a>.boundingRect();</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;        }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160; </div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160; </div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">  266</a></span>&#160;QPainterPath <a class="code" href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">QwtPlotShapeItem::shape</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;shape;</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;}</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a7626d822bf3d7905a606a0e0c7079c11">  284</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a7626d822bf3d7905a606a0e0c7079c11">QwtPlotShapeItem::setPen</a>( <span class="keyword">const</span> QColor&amp; color, qreal width, Qt::PenStyle style )</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;{</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="class_qwt_plot_shape_item.html#a7626d822bf3d7905a606a0e0c7079c11">setPen</a>( QPen( color, width, style ) );</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;}</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160; </div>
<div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a2ccab3059bb905fc2baee07cb69a262b">  297</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a7626d822bf3d7905a606a0e0c7079c11">QwtPlotShapeItem::setPen</a>( <span class="keyword">const</span> QPen&amp; pen )</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;{</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">pen</a> != m_data-&gt;pen )</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;    {</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        m_data-&gt;pen = <a class="code" href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">pen</a>;</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    }</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;}</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160; </div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">  310</a></span>&#160;QPen <a class="code" href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">QwtPlotShapeItem::pen</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;pen;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;}</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#ac73e7b2bc260f50dd997e078384a3d6b">  323</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#ac73e7b2bc260f50dd997e078384a3d6b">QwtPlotShapeItem::setBrush</a>( <span class="keyword">const</span> QBrush&amp; brush )</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;{</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">brush</a> != m_data-&gt;brush )</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    {</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        m_data-&gt;brush = <a class="code" href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">brush</a>;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    }</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;}</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00336"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">  336</a></span>&#160;QBrush <a class="code" href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">QwtPlotShapeItem::brush</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;brush;</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;}</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; </div>
<div class="line"><a name="l00357"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a76f617b8662ed118382d49c5201791e2">  357</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a76f617b8662ed118382d49c5201791e2">QwtPlotShapeItem::setRenderTolerance</a>( <span class="keywordtype">double</span> tolerance )</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;{</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;    tolerance = qwtMaxF( tolerance, 0.0 );</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160; </div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">if</span> ( tolerance != m_data-&gt;renderTolerance )</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    {</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        m_data-&gt;renderTolerance = tolerance;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <a class="code" href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">itemChanged</a>();</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    }</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;}</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#abe7488a7707971decaefffc50f0f854a">  372</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qwt_plot_shape_item.html#abe7488a7707971decaefffc50f0f854a">QwtPlotShapeItem::renderTolerance</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keywordflow">return</span> m_data-&gt;renderTolerance;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;}</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160; </div>
<div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a454e95f9c5a09f9bb6a6ee91134014df">  385</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qwt_plot_shape_item.html#a454e95f9c5a09f9bb6a6ee91134014df">QwtPlotShapeItem::draw</a>( QPainter* painter,</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; xMap, <span class="keyword">const</span> <a class="code" href="class_qwt_scale_map.html">QwtScaleMap</a>&amp; yMap,</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;    <span class="keyword">const</span> QRectF&amp; canvasRect )<span class="keyword"> const</span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;shape.isEmpty() )</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160; </div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;pen.style() == Qt::NoPen</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;        &amp;&amp; m_data-&gt;brush.style() == Qt::NoBrush )</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    {</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    }</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160; </div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;    <span class="keyword">const</span> QRectF cr = <a class="code" href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">QwtScaleMap::invTransform</a>(</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;        xMap, yMap, canvasRect.toRect() );</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160; </div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;    <span class="keyword">const</span> QRectF&amp; br = m_data-&gt;boundingRect;</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160; </div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    <span class="keywordflow">if</span> ( ( br.left() &gt; cr.right() ) || ( br.right() &lt; cr.left() )</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        || ( br.top() &gt; cr.bottom() ) || ( br.bottom() &lt; cr.top() ) )</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;    {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        <span class="comment">// outside the visible area</span></div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;    }</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160; </div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">bool</span> doAlign = <a class="code" href="class_qwt_painter.html#ae9af230df7bb8d40b802d4f3205a8631">QwtPainter::roundingAlignment</a>( painter );</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160; </div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    QPainterPath path = qwtTransformPath( xMap, yMap,</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        m_data-&gt;shape, doAlign );</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    <span class="keywordflow">if</span> ( <a class="code" href="class_qwt_plot_shape_item.html#a0291a8506ac69ce236545c53c4cc4624">testPaintAttribute</a>( <a class="code" href="class_qwt_plot_shape_item.html#aaa78031ce7ab1b8e713bc05da05a4631a21854077548e55943dc8f9f208960442">QwtPlotShapeItem::ClipPolygons</a> ) )</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="keyword">const</span> qreal pw = <a class="code" href="class_qwt_painter.html#a9861338f5900c731fa66423aa6f29b88">QwtPainter::effectivePenWidth</a>( painter-&gt;pen() );</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;        <span class="keyword">const</span> QRectF clipRect = canvasRect.adjusted( -pw, -pw, pw, pw );</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;        QPainterPath clippedPath;</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        clippedPath.setFillRule( path.fillRule() );</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160; </div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        <a class="code" href="class_q_list.html">QList&lt; QPolygonF &gt;</a> polygons = path.toSubpathPolygons();</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; polygons.size(); i++ )</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        {</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;            <a class="code" href="namespace_qwt_clipper.html#aa5305d415fd97b332825e68b6cb25715">QwtClipper::clipPolygonF</a>( clipRect, polygons[i], <span class="keyword">true</span> );</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;            clippedPath.addPolygon( polygons[i] );</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160; </div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;        }</div>
<div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160; </div>
<div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;        path = clippedPath;</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    }</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160; </div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;renderTolerance &gt; 0.0 )</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    {</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        <a class="code" href="class_qwt_weeding_curve_fitter.html">QwtWeedingCurveFitter</a> fitter( m_data-&gt;renderTolerance );</div>
<div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160; </div>
<div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;        QPainterPath fittedPath;</div>
<div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;        fittedPath.setFillRule( path.fillRule() );</div>
<div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160; </div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        <span class="keyword">const</span> <a class="code" href="class_q_list.html">QList&lt; QPolygonF &gt;</a> polygons = path.toSubpathPolygons();</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; polygons.size(); i++ )</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;            fittedPath.addPolygon( fitter.<a class="code" href="class_qwt_weeding_curve_fitter.html#a374b476ce3ea491760ff7d0ccda0fedf">fitCurve</a>( polygons[ i ] ) );</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160; </div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;        path = fittedPath;</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;    }</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160; </div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    painter-&gt;setPen( m_data-&gt;pen );</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    painter-&gt;setBrush( m_data-&gt;brush );</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160; </div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;    painter-&gt;drawPath( path );</div>
<div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;}</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160; </div>
<div class="line"><a name="l00463"></a><span class="lineno"><a class="line" href="class_qwt_plot_shape_item.html#a33cf19d2163949823d5f9b3ce8d73028">  463</a></span>&#160;<a class="code" href="class_qwt_graphic.html">QwtGraphic</a> <a class="code" href="class_qwt_plot_shape_item.html#a33cf19d2163949823d5f9b3ce8d73028">QwtPlotShapeItem::legendIcon</a>( <span class="keywordtype">int</span> index,</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;    <span class="keyword">const</span> QSizeF&amp; size )<span class="keyword"> const</span></div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;<span class="keyword"></span>{</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    Q_UNUSED( index );</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160; </div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <a class="code" href="class_qwt_graphic.html">QwtGraphic</a> icon;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    icon.<a class="code" href="class_qwt_graphic.html#acba8d73bc62bd15c15491d4a6e739869">setDefaultSize</a>( size );</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160; </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <span class="keywordflow">if</span> ( size.isEmpty() )</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;        <span class="keywordflow">return</span> icon;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160; </div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    <span class="keywordflow">if</span> ( m_data-&gt;legendMode == <a class="code" href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cdac1d32e3ca5a234638e8bc46d2dd86e38">QwtPlotShapeItem::LegendShape</a> )</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    {</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;        <span class="keyword">const</span> QRectF&amp; br = m_data-&gt;boundingRect;</div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160; </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        QPainter painter( &amp;icon );</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        painter.setRenderHint( QPainter::Antialiasing,</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;            <a class="code" href="class_qwt_plot_item.html#aca66d2161c8a6caf5ebef82f59770d15">testRenderHint</a>( <a class="code" href="class_qwt_plot_item.html#abe0e8a39aceef9a600b73e02550a9704ae0c9811915d496eaacbd749724647f13">QwtPlotItem::RenderAntialiased</a> ) );</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160; </div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        painter.translate( -br.topLeft() );</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160; </div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;        painter.setPen( m_data-&gt;pen );</div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;        painter.setBrush( m_data-&gt;brush );</div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        painter.drawPath( m_data-&gt;shape );</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    }</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00489"></a><span class="lineno">  489</span>&#160;    {</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        QColor iconColor;</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;        <span class="keywordflow">if</span> ( m_data-&gt;brush.style() != Qt::NoBrush )</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;            iconColor = m_data-&gt;brush.color();</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;            iconColor = m_data-&gt;pen.color();</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160; </div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        icon = <a class="code" href="class_qwt_plot_item.html#a9a86df9a56ed5fea2cee81026e45f375">defaultIcon</a>( iconColor, size );</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    }</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160; </div>
<div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;    <span class="keywordflow">return</span> icon;</div>
<div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;}</div>
<div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160; </div>
<div class="ttc" id="aclass_q_list_html"><div class="ttname"><a href="class_q_list.html">QList</a></div><div class="ttdef"><b>Definition:</b> <a href="qwt__abstract__legend_8h_source.html#l00017">qwt_abstract_legend.h:17</a></div></div>
<div class="ttc" id="aclass_qwt_graphic_html"><div class="ttname"><a href="class_qwt_graphic.html">QwtGraphic</a></div><div class="ttdoc">A paint device for scalable graphics.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__graphic_8h_source.html#l00075">qwt_graphic.h:76</a></div></div>
<div class="ttc" id="aclass_qwt_graphic_html_acba8d73bc62bd15c15491d4a6e739869"><div class="ttname"><a href="class_qwt_graphic.html#acba8d73bc62bd15c15491d4a6e739869">QwtGraphic::setDefaultSize</a></div><div class="ttdeci">void setDefaultSize(const QSizeF &amp;)</div><div class="ttdoc">Set a default size.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__graphic_8cpp_source.html#l00553">qwt_graphic.cpp:553</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_a9861338f5900c731fa66423aa6f29b88"><div class="ttname"><a href="class_qwt_painter.html#a9861338f5900c731fa66423aa6f29b88">QwtPainter::effectivePenWidth</a></div><div class="ttdeci">static qreal effectivePenWidth(const QPen &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8h_source.html#l00201">qwt_painter.h:201</a></div></div>
<div class="ttc" id="aclass_qwt_painter_html_ae9af230df7bb8d40b802d4f3205a8631"><div class="ttname"><a href="class_qwt_painter.html#ae9af230df7bb8d40b802d4f3205a8631">QwtPainter::roundingAlignment</a></div><div class="ttdeci">static bool roundingAlignment()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__painter_8h_source.html#l00183">qwt_painter.h:183</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html"><div class="ttname"><a href="class_qwt_plot_item.html">QwtPlotItem</a></div><div class="ttdoc">Base class for items on the plot canvas.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00066">qwt_plot_item.h:67</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a3967414c7542e267d0c2793f02be7241"><div class="ttname"><a href="class_qwt_plot_item.html#a3967414c7542e267d0c2793f02be7241">QwtPlotItem::legendChanged</a></div><div class="ttdeci">virtual void legendChanged()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00491">qwt_plot_item.cpp:491</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a57d90e4146133b59d589c71b3a643e82"><div class="ttname"><a href="class_qwt_plot_item.html#a57d90e4146133b59d589c71b3a643e82">QwtPlotItem::setZ</a></div><div class="ttdeci">void setZ(double z)</div><div class="ttdoc">Set the z value.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00165">qwt_plot_item.cpp:165</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a5a335be8ff488809a2cf7f4b734ad1b6"><div class="ttname"><a href="class_qwt_plot_item.html#a5a335be8ff488809a2cf7f4b734ad1b6">QwtPlotItem::setItemAttribute</a></div><div class="ttdeci">void setItemAttribute(ItemAttribute, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00228">qwt_plot_item.cpp:228</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_a9a86df9a56ed5fea2cee81026e45f375"><div class="ttname"><a href="class_qwt_plot_item.html#a9a86df9a56ed5fea2cee81026e45f375">QwtPlotItem::defaultIcon</a></div><div class="ttdeci">QwtGraphic defaultIcon(const QBrush &amp;, const QSizeF &amp;) const</div><div class="ttdoc">Return a default icon from a brush.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00422">qwt_plot_item.cpp:422</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ab149ac85e233ce9cedf2f2f2af871bf3af18fa4c34b44eaf43e13608c6bd7c7b7"><div class="ttname"><a href="class_qwt_plot_item.html#ab149ac85e233ce9cedf2f2f2af871bf3af18fa4c34b44eaf43e13608c6bd7c7b7">QwtPlotItem::Rtti_PlotShape</a></div><div class="ttdeci">@ Rtti_PlotShape</div><div class="ttdoc">For QwtPlotShapeItem.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00120">qwt_plot_item.h:120</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_abe0e8a39aceef9a600b73e02550a9704ae0c9811915d496eaacbd749724647f13"><div class="ttname"><a href="class_qwt_plot_item.html#abe0e8a39aceef9a600b73e02550a9704ae0c9811915d496eaacbd749724647f13">QwtPlotItem::RenderAntialiased</a></div><div class="ttdeci">@ RenderAntialiased</div><div class="ttdoc">Enable antialiasing.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00207">qwt_plot_item.h:206</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_aca66d2161c8a6caf5ebef82f59770d15"><div class="ttname"><a href="class_qwt_plot_item.html#aca66d2161c8a6caf5ebef82f59770d15">QwtPlotItem::testRenderHint</a></div><div class="ttdeci">bool testRenderHint(RenderHint) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00332">qwt_plot_item.cpp:332</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ad956fdbce5b0721abccce6d09fe4d5ce"><div class="ttname"><a href="class_qwt_plot_item.html#ad956fdbce5b0721abccce6d09fe4d5ce">QwtPlotItem::itemChanged</a></div><div class="ttdeci">virtual void itemChanged()</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00481">qwt_plot_item.cpp:481</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176"><div class="ttname"><a href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a4e377b54bd879c60a95162b6a9e9e176">QwtPlotItem::Legend</a></div><div class="ttdeci">@ Legend</div><div class="ttdoc">The item is represented on the legend.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00150">qwt_plot_item.h:150</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48"><div class="ttname"><a href="class_qwt_plot_item.html#ae0fabcdd35f4818ce5bbe019b0eed062a9de83e2ad8a88796a36a11ef8b033a48">QwtPlotItem::AutoScale</a></div><div class="ttdeci">@ AutoScale</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8h_source.html#l00157">qwt_plot_item.h:157</a></div></div>
<div class="ttc" id="aclass_qwt_plot_item_html_aebc6a6627f293f62e1d07006b11912cc"><div class="ttname"><a href="class_qwt_plot_item.html#aebc6a6627f293f62e1d07006b11912cc">QwtPlotItem::boundingRect</a></div><div class="ttdeci">virtual QRectF boundingRect() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__item_8cpp_source.html#l00568">qwt_plot_item.cpp:568</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html"><div class="ttname"><a href="class_qwt_plot_shape_item.html">QwtPlotShapeItem</a></div><div class="ttdoc">A plot item, which displays any graphical shape, that can be defined by a QPainterPath.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00038">qwt_plot_shapeitem.h:39</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a0291a8506ac69ce236545c53c4cc4624"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a0291a8506ac69ce236545c53c4cc4624">QwtPlotShapeItem::testPaintAttribute</a></div><div class="ttdeci">bool testPaintAttribute(PaintAttribute) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00175">qwt_plot_shapeitem.cpp:175</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a02b583259bcc52b812fe86f08fbe7a37"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a02b583259bcc52b812fe86f08fbe7a37">QwtPlotShapeItem::boundingRect</a></div><div class="ttdeci">virtual QRectF boundingRect() const override</div><div class="ttdoc">Bounding rectangle of the shape.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00205">qwt_plot_shapeitem.cpp:205</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a0a448e4354f67a3957b8123214cd75bb"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a0a448e4354f67a3957b8123214cd75bb">QwtPlotShapeItem::setRect</a></div><div class="ttdeci">void setRect(const QRectF &amp;)</div><div class="ttdoc">Set a path built from a rectangle.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00216">qwt_plot_shapeitem.cpp:216</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a0a8f3ed22324b23d04588cc749b74674"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a0a8f3ed22324b23d04588cc749b74674">QwtPlotShapeItem::setShape</a></div><div class="ttdeci">void setShape(const QPainterPath &amp;)</div><div class="ttdoc">Set the shape to be displayed.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00244">qwt_plot_shapeitem.cpp:244</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a2cf398a73f125044df9b83ba421c47cd"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cd">QwtPlotShapeItem::LegendMode</a></div><div class="ttdeci">LegendMode</div><div class="ttdoc">Mode how to display the item on the legend.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00064">qwt_plot_shapeitem.h:65</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a2cf398a73f125044df9b83ba421c47cda5798347f022bcd9f66c0bb2c8a9534c3"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cda5798347f022bcd9f66c0bb2c8a9534c3">QwtPlotShapeItem::LegendColor</a></div><div class="ttdeci">@ LegendColor</div><div class="ttdoc">Display a filled rectangle.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00071">qwt_plot_shapeitem.h:70</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a2cf398a73f125044df9b83ba421c47cdac1d32e3ca5a234638e8bc46d2dd86e38"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a2cf398a73f125044df9b83ba421c47cdac1d32e3ca5a234638e8bc46d2dd86e38">QwtPlotShapeItem::LegendShape</a></div><div class="ttdeci">@ LegendShape</div><div class="ttdoc">Display a scaled down version of the shape.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00067">qwt_plot_shapeitem.h:67</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a2daf96fc886bb84e4a55913fc0c39906"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a2daf96fc886bb84e4a55913fc0c39906">QwtPlotShapeItem::setLegendMode</a></div><div class="ttdeci">void setLegendMode(LegendMode)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00186">qwt_plot_shapeitem.cpp:186</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a33cf19d2163949823d5f9b3ce8d73028"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a33cf19d2163949823d5f9b3ce8d73028">QwtPlotShapeItem::legendIcon</a></div><div class="ttdeci">virtual QwtGraphic legendIcon(int index, const QSizeF &amp;) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00463">qwt_plot_shapeitem.cpp:463</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a454e95f9c5a09f9bb6a6ee91134014df"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a454e95f9c5a09f9bb6a6ee91134014df">QwtPlotShapeItem::draw</a></div><div class="ttdeci">virtual void draw(QPainter *, const QwtScaleMap &amp;xMap, const QwtScaleMap &amp;yMap, const QRectF &amp;canvasRect) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00385">qwt_plot_shapeitem.cpp:385</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a4d08696bbf92892cd007fd10a746ec58"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a4d08696bbf92892cd007fd10a746ec58">QwtPlotShapeItem::rtti</a></div><div class="ttdeci">virtual int rtti() const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00151">qwt_plot_shapeitem.cpp:151</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a4fa2640aabb1d3992bb6a102172d4f2c"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a4fa2640aabb1d3992bb6a102172d4f2c">QwtPlotShapeItem::legendMode</a></div><div class="ttdeci">LegendMode legendMode() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00199">qwt_plot_shapeitem.cpp:199</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a61767eb8966adf67ba8044afc38f5fb5"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a61767eb8966adf67ba8044afc38f5fb5">QwtPlotShapeItem::QwtPlotShapeItem</a></div><div class="ttdeci">QwtPlotShapeItem(const QString &amp;title=QString())</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00112">qwt_plot_shapeitem.cpp:112</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a7626d822bf3d7905a606a0e0c7079c11"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a7626d822bf3d7905a606a0e0c7079c11">QwtPlotShapeItem::setPen</a></div><div class="ttdeci">void setPen(const QColor &amp;, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00284">qwt_plot_shapeitem.cpp:284</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a76f617b8662ed118382d49c5201791e2"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a76f617b8662ed118382d49c5201791e2">QwtPlotShapeItem::setRenderTolerance</a></div><div class="ttdeci">void setRenderTolerance(double)</div><div class="ttdoc">Set the tolerance for the weeding optimization.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00357">qwt_plot_shapeitem.cpp:357</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a9810bd70cfdff88d14f88d9edf20c85b"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a9810bd70cfdff88d14f88d9edf20c85b">QwtPlotShapeItem::setPolygon</a></div><div class="ttdeci">void setPolygon(const QPolygonF &amp;)</div><div class="ttdoc">Set a path built from a polygon.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00230">qwt_plot_shapeitem.cpp:230</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_a9aa4209b9d3d1e5be788deabed64dfde"><div class="ttname"><a href="class_qwt_plot_shape_item.html#a9aa4209b9d3d1e5be788deabed64dfde">QwtPlotShapeItem::brush</a></div><div class="ttdeci">QBrush brush() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00336">qwt_plot_shapeitem.cpp:336</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_aaa78031ce7ab1b8e713bc05da05a4631"><div class="ttname"><a href="class_qwt_plot_shape_item.html#aaa78031ce7ab1b8e713bc05da05a4631">QwtPlotShapeItem::PaintAttribute</a></div><div class="ttdeci">PaintAttribute</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00047">qwt_plot_shapeitem.h:48</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_aaa78031ce7ab1b8e713bc05da05a4631a21854077548e55943dc8f9f208960442"><div class="ttname"><a href="class_qwt_plot_shape_item.html#aaa78031ce7ab1b8e713bc05da05a4631a21854077548e55943dc8f9f208960442">QwtPlotShapeItem::ClipPolygons</a></div><div class="ttdeci">@ ClipPolygons</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00058">qwt_plot_shapeitem.h:58</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_abe398b435b4912da93734ec3b740c800"><div class="ttname"><a href="class_qwt_plot_shape_item.html#abe398b435b4912da93734ec3b740c800">QwtPlotShapeItem::pen</a></div><div class="ttdeci">QPen pen() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00310">qwt_plot_shapeitem.cpp:310</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_abe7488a7707971decaefffc50f0f854a"><div class="ttname"><a href="class_qwt_plot_shape_item.html#abe7488a7707971decaefffc50f0f854a">QwtPlotShapeItem::renderTolerance</a></div><div class="ttdeci">double renderTolerance() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00372">qwt_plot_shapeitem.cpp:372</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_ac73e7b2bc260f50dd997e078384a3d6b"><div class="ttname"><a href="class_qwt_plot_shape_item.html#ac73e7b2bc260f50dd997e078384a3d6b">QwtPlotShapeItem::setBrush</a></div><div class="ttdeci">void setBrush(const QBrush &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00323">qwt_plot_shapeitem.cpp:323</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_accacacbcdbf558ad3dfcba462bf2b0c3"><div class="ttname"><a href="class_qwt_plot_shape_item.html#accacacbcdbf558ad3dfcba462bf2b0c3">QwtPlotShapeItem::~QwtPlotShapeItem</a></div><div class="ttdeci">virtual ~QwtPlotShapeItem()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00134">qwt_plot_shapeitem.cpp:134</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_acd66d009cd24cdfb418a5cc9486b5001"><div class="ttname"><a href="class_qwt_plot_shape_item.html#acd66d009cd24cdfb418a5cc9486b5001">QwtPlotShapeItem::setPaintAttribute</a></div><div class="ttdeci">void setPaintAttribute(PaintAttribute, bool on=true)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00163">qwt_plot_shapeitem.cpp:163</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_ad59bff5c245a3b2f790058bfe6e8d676"><div class="ttname"><a href="class_qwt_plot_shape_item.html#ad59bff5c245a3b2f790058bfe6e8d676">QwtPlotShapeItem::PaintAttributes</a></div><div class="ttdeci">QFlags&lt; PaintAttribute &gt; PaintAttributes</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8h_source.html#l00061">qwt_plot_shapeitem.h:61</a></div></div>
<div class="ttc" id="aclass_qwt_plot_shape_item_html_af1295e4d9d16e1606d706326192aa90d"><div class="ttname"><a href="class_qwt_plot_shape_item.html#af1295e4d9d16e1606d706326192aa90d">QwtPlotShapeItem::shape</a></div><div class="ttdeci">QPainterPath shape() const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__plot__shapeitem_8cpp_source.html#l00266">qwt_plot_shapeitem.cpp:266</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html"><div class="ttname"><a href="class_qwt_scale_map.html">QwtScaleMap</a></div><div class="ttdoc">A scale map.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00026">qwt_scale_map.h:27</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_a504f1627e0e02ddac03d2ce46507b865"><div class="ttname"><a href="class_qwt_scale_map.html#a504f1627e0e02ddac03d2ce46507b865">QwtScaleMap::transform</a></div><div class="ttdeci">double transform(double s) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00137">qwt_scale_map.h:137</a></div></div>
<div class="ttc" id="aclass_qwt_scale_map_html_ab1ee6d62addf3f9cf091d425be9ac642"><div class="ttname"><a href="class_qwt_scale_map.html#ab1ee6d62addf3f9cf091d425be9ac642">QwtScaleMap::invTransform</a></div><div class="ttdeci">double invTransform(double p) const</div><div class="ttdef"><b>Definition:</b> <a href="qwt__scale__map_8h_source.html#l00154">qwt_scale_map.h:154</a></div></div>
<div class="ttc" id="aclass_qwt_text_html"><div class="ttname"><a href="class_qwt_text.html">QwtText</a></div><div class="ttdoc">A class representing a text.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__text_8h_source.html#l00051">qwt_text.h:52</a></div></div>
<div class="ttc" id="aclass_qwt_weeding_curve_fitter_html"><div class="ttname"><a href="class_qwt_weeding_curve_fitter.html">QwtWeedingCurveFitter</a></div><div class="ttdoc">A curve fitter implementing Douglas and Peucker algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="qwt__weeding__curve__fitter_8h_source.html#l00038">qwt_weeding_curve_fitter.h:39</a></div></div>
<div class="ttc" id="aclass_qwt_weeding_curve_fitter_html_a374b476ce3ea491760ff7d0ccda0fedf"><div class="ttname"><a href="class_qwt_weeding_curve_fitter.html#a374b476ce3ea491760ff7d0ccda0fedf">QwtWeedingCurveFitter::fitCurve</a></div><div class="ttdeci">virtual QPolygonF fitCurve(const QPolygonF &amp;) const override</div><div class="ttdef"><b>Definition:</b> <a href="qwt__weeding__curve__fitter_8cpp_source.html#l00124">qwt_weeding_curve_fitter.cpp:124</a></div></div>
<div class="ttc" id="anamespace_qwt_clipper_html_aa5305d415fd97b332825e68b6cb25715"><div class="ttname"><a href="namespace_qwt_clipper.html#aa5305d415fd97b332825e68b6cb25715">QwtClipper::clipPolygonF</a></div><div class="ttdeci">QWT_EXPORT void clipPolygonF(const QRectF &amp;, QPolygonF &amp;, bool closePolygon=false)</div><div class="ttdef"><b>Definition:</b> <a href="qwt__clipper_8cpp_source.html#l00404">qwt_clipper.cpp:404</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_plot_shapeitem.cpp</b></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
